#include <string>

#include "data_element.h"

using namespace std;

const string DataElement::name = "#PCDATA";

DataElement::DataElement() {
}

DataElement::~DataElement () {
}

std::string DataElement::generateRegex(DoctypeDefinition* dtd) {
	// search until the the parent ends or a new node begins( "<" )
	return "[^<]*"; // TODO check if a #PCDATA can be empty
}

void DataElement::print(std::ostream& out) {
	out << "(" << name << ")";
}
